//
//  ZLCSystemNewsModel.m
//  HappilyLoan
//
//  Created by 纵情向前 on 2017/4/13.
//  Copyright © 2017年 zongqingxiangqian. All rights reserved.
//

#import "ZLCSystemNewsModel.h"
#import "ZFHeader.h"
@implementation ZLCSystemNewsModel
+ (instancetype)getSysytemNewsDictionary:(NSDictionary *)dict{
    
    ZLCSystemNewsModel *systemModel = [ZLCSystemNewsModel new];
    systemModel.create_time = [NSString stringWithFormat:@"%@",dict[@"create_time"]];
    systemModel.newsId = dict[@"id"];
    systemModel.msg_content = dict[@"msg_content"];
    systemModel.msg_status = [NSString stringWithFormat:@"%@",dict[@"msg_status"]];
    systemModel.msg_title = dict[@"msg_title"];
    systemModel.msg_type = dict[@"msg_type"];
    systemModel.update_time = [NSString stringWithFormat:@"%@",dict[@"update_time"]];
    systemModel.newsHeight = [ZFPulicAPI calculateStringHeightWithText:systemModel.msg_title withWidth:(SCREEN_WIDTH - 50) withTextFont:15];
    return systemModel;

}
@end
